//
//  iPAXI_menu.h
//  iPAXI
//
//  Created by Pei Liu on 10/19/11.
//  Copyright 2011 George Mason University. All rights reserved.
//

#ifndef iPAXI_iPAXI_menu_h
#define iPAXI_iPAXI_menu_h

int submenusize[7], menuloc[7];
int selection;

/* Set up the menu. */
submenusize[0] = 0;
menuloc[0] = LEFT;

submenusize[1] = 7;
menulist[1][0] = "</B/32>FILE<!B>";
menulist[1][1] = "</B/32>NEW<!B>";
menulist[1][2] = "</B/32>OPEN<!B>"; 
menulist[1][3] = "</B/32>SAVE<!B>";
menulist[1][4] = "</B/32>SAVE AS<!B>";
menulist[1][5] = "</B/32>PRINT<!B>";
menulist[1][6] = "</B/32>EXIT<!B>";
menuloc[1] = LEFT;

submenusize[2] = 5;
menulist[2][0] = "</B/32>EDIT<!B>";
menulist[2][1] = "</B/32>UNDO<!B>";
menulist[2][2] = "</B/32>CUT<!B> ";
menulist[2][3] = "</B/32>COPY<!B>";  
menulist[2][4] = "</B/32>PASTE<!B>";
menuloc[2] = LEFT;

submenusize[3] = 5;
menulist[3][0] = "</B/32>SEARCH<!B>";
menulist[3][1] = "</B/32>FIND<!B>";
menulist[3][2] = "</B/32>REPLACE<!B>";
menulist[3][3] = "</B/32>SEARCH AGAIN<!B>";
menulist[3][4] = "</B/32>GOTO LINE<!B>";
menuloc[3] = LEFT;

submenusize[4] = 3;
menulist[4][0] = "</B/32>BUILD<!B>";
menulist[4][1] = "</B/32>COMPILE<!B>";
menulist[4][2] = "</B/32>RUN<!B>";
menuloc[4] = LEFT;

submenusize[5] = 8;
menulist[5][0] = "</B/32>DEBUG<!B>";
menulist[5][1] = "</B/32>EMULATOR TEST<!B>";
menulist[5][2] = "</B/32>DEBUG<!B>";
menulist[5][3] = "</B/32>BREAKPOINTS<!B>";
menulist[5][4] = "</B/32>WATCH<!B>";
menulist[5][5] = "</B/32>OUTPUT<!B>";
menulist[5][6] = "</B/32>ADD WATCH<!B>";
menulist[5][7] = "</B/32>ADD BREAKPOINTS<!B>";
menuloc[5] = LEFT;

submenusize[6] = 3;
menulist[6][0] = "</B/32>HELP<!B>";
menulist[6][1] = "</B/32>ABOUT<!B>";
menulist[6][2] = "</B/32>HELP<!B>";
menuloc[6] = LEFT;

/* Create the menu. */
menu = newCDKMenu (cdkscreen, menulist, 7, submenusize, menuloc,TOP, A_UNDERLINE, A_REVERSE);

/* Draw the CDK screen. */
refreshCDKScreen (cdkscreen);

/* Activate the menu. */
selection = activateCDKMenu (menu, 0);



#endif
